package exp;

import java.util.Arrays;
import java.util.Scanner;

/**
 * 统计一篇文章中每一个字母出现的频率
 */
public class p01CountLetterFrequency {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] a=new int[26];
        while (in.hasNextLine()){
            String s= in.nextLine().toLowerCase().trim();
            if (s.equals("end")) break;
            for (char c : s.toCharArray()){
                if (Character.isLetter(c)){
                    a[c-'a']++;
                }
            }
            System.out.println(Arrays.toString(a));
        }
    }
}
